package com.interceptor;

import net.bytebuddy.implementation.bind.annotation.Origin;
import net.bytebuddy.implementation.bind.annotation.SuperCall;

public class GatewayDelegateLogic {

    /**
     * 参数/返回值类型必须与原方法兼容；
     * 参数名可随意，用 @Origin 可拿到 Method 对象，用 @SuperCall 可调用原实现
     */
    public static boolean handle(String path,
                                 @Origin java.lang.reflect.Method method,
                                 @SuperCall java.util.concurrent.Callable<String> original)
            throws Exception {
        System.out.println("agnet handle 放过请求：" + path);
        return false;

    }
}